package String;

import java.util.Scanner;

public class Zuoye {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        String a=in.next();
        String b=in.next();
        int c=0,i=0;
        while(a.indexOf(b,i)!=-1){
            c++;
            i=a.indexOf(b,i)+b.length();
        }
        System.out.println(c);
    }

}